/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.purchase.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.z100h.supplychain.purchase.entity.PurchaseOrderItem;
import com.z100h.supplychain.purchase.entity.PurchaseOrderItemVo;
import com.z100h.supplychain.purchase.mapper.PurchaseOrderItemMapper;

/**
 * 供应链采购单明细Service
 * @author madara
 * @version 2018-09-20
 */
@Service
@Transactional(readOnly = true)
public class PurchaseOrderItemService extends CrudService<PurchaseOrderItemMapper, PurchaseOrderItem> {

	@Autowired
	private PurchaseOrderItemMapper purchaseOrderItemMapper;

	@Override
	public PurchaseOrderItem get(String id) {
		return super.get(id);
	}

	@Override
	public List<PurchaseOrderItem> findList(PurchaseOrderItem purchaseOrderItem) {
		return super.findList(purchaseOrderItem);
	}

	@Override
	public Page<PurchaseOrderItem> findPage(Page<PurchaseOrderItem> page, PurchaseOrderItem purchaseOrderItem) {
		return super.findPage(page, purchaseOrderItem);
	}

	@Override
	@Transactional(readOnly = false)
	public void save(PurchaseOrderItem purchaseOrderItem) {
		super.save(purchaseOrderItem);
	}

	@Override
	@Transactional(readOnly = false)
	public void delete(PurchaseOrderItem purchaseOrderItem) {
		super.delete(purchaseOrderItem);
	}

	public List<PurchaseOrderItemVo> findPurchaseOrderItemList(String purchaseOrderId) {
		return purchaseOrderItemMapper.findPurchaseOrderItemList(purchaseOrderId);
	}

}